/* ===================================================== */
/*         استایلِ صفحه‌ی «راهنمای کامل آر‌اس‌آی»            */
/* ===================================================== */

.rsi-guide-page{
    scroll-behavior:smooth;
}

.rsi-guide{
    --panel:var(--jn-bg-2);
    --panel-soft:var(--jn-bg-3);
    --line:rgba(var(--jn-overlay-rgb),.08);
    --line-strong:rgba(var(--jn-overlay-rgb),.16);
    --cyan:var(--jn-cyan);
    --purple:var(--jn-purple);
    --danger:var(--jn-red-2);
    --good:var(--jn-green-2);
    --text-muted:var(--jn-text-3);

    font-variant-numeric:tabular-nums;
}

.rsi-guide .hero{
    max-width:1180px;
    margin:0 auto;
    padding:8px 4px 22px;
    text-align:center;
}

.rsi-guide .hero .eyebrow{
    font-size:11.5px;
    font-weight:700;
    color:var(--jn-cyan-text);
    letter-spacing:.04em;
    margin-bottom:10px;
}

.rsi-guide .hero h1{
    font-size:24px;
    margin:0 0 12px;
    text-wrap:balance;
}

.rsi-guide .hero p{
    font-size:14.5px;
    color:var(--text-muted);
    max-width:70ch;
    margin:0 auto;
    line-height:1.9;
}

.rsi-guide .quicknav{
    max-width:1180px;
    margin:0 auto 8px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:center;
}

.rsi-guide .quicknav a{
    font-size:11px;
    color:var(--text-muted);
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:20px;
    padding:6px 13px;
    text-decoration:none;
    transition:.15s;
}

.rsi-guide .quicknav a:hover{
    color:var(--jn-cyan-text);
    border-color:rgba(var(--jn-cyan-rgb),.35);
}

.rsi-guide .sections{
    max-width:1180px;
    margin:26px auto 0;
    display:flex;
    flex-direction:column;
    gap:22px;
}

.rsi-guide .sec{
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:16px;
    padding:26px 30px;
    scroll-margin-top:20px;
}

.rsi-guide .sec-head{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

.rsi-guide .sec-num{
    width:28px;
    height:28px;
    border-radius:9px;
    background:var(--panel-soft);
    border:1px solid var(--line-strong);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
    color:var(--jn-cyan-text);
    flex-shrink:0;
}

.rsi-guide .sec-head h2{
    font-size:17px;
    margin:0;
}

.rsi-guide .sec-body{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:26px;
    align-items:start;
}

@media(max-width:760px){
    .rsi-guide .sec-body{ grid-template-columns:1fr; }

    /* جدولِ کوچیک بدونِ wrapper بود؛ روی موبایل به‌جایِ سرریزِ کلِ صفحه،
       خودش به‌صورتِ افقی اسکرول می‌شه */
    .rsi-guide .mini-table{
        display:block;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .rsi-guide .mini-table tbody,
    .rsi-guide .mini-table thead,
    .rsi-guide .mini-table tr{
        display:table;
        width:100%;
        table-layout:fixed;
    }

    .rsi-guide-page{
        overflow-x:hidden;
    }
}

/* بخش‌هایی که دیاگرام ندارن (فقط متن) — تمامِ عرض رو می‌گیرن */
.rsi-guide .sec-body.full{
    grid-template-columns:1fr;
}

.rsi-guide .mini-table{
    width:100%;
    border-collapse:collapse;
    margin:4px 0 14px;
    font-size:12.5px;
}

.rsi-guide .mini-table th,
.rsi-guide .mini-table td{
    padding:8px 10px;
    text-align:center;
    border-bottom:1px solid var(--line);
}

.rsi-guide .mini-table th{
    color:var(--jn-cyan-text);
    font-weight:700;
    background:var(--panel-soft);
    white-space:nowrap;
}

.rsi-guide .mini-table td{
    color:var(--jn-text-2);
}

.rsi-guide .sec-text.faq p{
    padding-bottom:12px;
    border-bottom:1px dashed var(--line);
}

.rsi-guide .sec-text.faq p:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.rsi-guide .diagram-box{
    background:var(--jn-bg-0);
    border:1px solid var(--line);
    border-radius:12px;
    padding:12px 14px;
}

.rsi-guide .diagram-box svg{ display:block; width:100%; height:auto; }

.rsi-guide .diagram-box .cap{
    margin-top:6px;
    font-size:10px;
    color:var(--text-muted);
    text-align:center;
}

.rsi-guide .chart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:2px 4px 8px;
}

.rsi-guide .chart-header .coin{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    font-weight:600;
    color:var(--jn-text-1);
}

.rsi-guide .chart-header .coin .live{
    width:6px; height:6px; border-radius:50%;
    background:var(--good);
    box-shadow:0 0 6px rgba(var(--jn-green-2-rgb),.7);
}

.rsi-guide .chart-header .badge{
    font-size:9.5px;
    color:var(--text-muted);
    background:var(--panel-soft);
    border:1px solid var(--line);
    border-radius:10px;
    padding:2px 9px;
}

.rsi-guide .mini-divider{
    display:flex;
    align-items:center;
    gap:10px;
    margin:14px 0 10px;
    font-size:10.5px;
    color:var(--text-muted);
}
.rsi-guide .mini-divider::before,
.rsi-guide .mini-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:var(--line);
}

.rsi-guide .plain{
    font-size:14.5px;
    line-height:2;
    color:var(--jn-text-2);
    margin:0 0 12px;
}

.rsi-guide .sec-text p{
    font-size:14.5px;
    line-height:2;
    color:var(--jn-text-2);
    margin:0 0 12px;
    text-align:justify;
}

.rsi-guide .sec-text p:last-child{ margin-bottom:0; }

.rsi-guide .example{
    margin-top:12px;
    background:var(--panel-soft);
    border-right:3px solid var(--cyan);
    border-radius:8px;
    padding:12px 16px;
    font-size:13.5px;
    color:var(--text-muted);
    line-height:1.95;
}

.rsi-guide .example b{ color:var(--jn-text-1); font-weight:600; }

.rsi-guide .pdf-figure{
    background:#f3f4f6;
    border-radius:12px;
    padding:16px;
    display:flex;
    justify-content:center;
    margin:14px 0 6px;
}

.rsi-guide .pdf-figure img{
    max-width:100%;
    height:auto;
    display:block;
    border-radius:4px;
}

.rsi-guide .fig-cap{
    margin:0 0 18px;
    font-size:11.5px;
    color:var(--text-muted);
    text-align:center;
    line-height:1.85;
}

.rsi-guide .fig-cap b{ color:var(--jn-text-2); font-weight:600; }

.rsi-guide h3{
    font-size:14.5px;
    color:var(--jn-cyan-text);
    margin:18px 0 8px;
}

.rsi-guide .warn-box{
    margin:12px 0;
    background:rgba(var(--jn-red-2-rgb),.08);
    border-right:3px solid var(--danger);
    border-radius:8px;
    padding:12px 16px;
    font-size:13.5px;
    color:var(--text-muted);
    line-height:1.95;
}

.rsi-guide .warn-box b{ color:var(--jn-text-1); font-weight:600; }

.rsi-guide footer.note{
    max-width:1180px;
    margin:30px auto 6px;
    font-size:11.5px;
    color:var(--text-muted);
    text-align:center;
    line-height:1.9;
}
